import request from '@/utils/request'

export function listSystemGroup(query) {
  return request({
    url: '/business/systemGroup/list',
    method: 'get',
    params: query
  })
}

export function getSystemGroup(systemProjectId) {
  return request({
    url: '/business/systemGroup/' + systemProjectId,
    method: 'get'
  })
}

export function addSystemGroup(data) {
  return request({
    url: '/business/systemGroup',
    method: 'post',
    data: data
  })
}

export function updateSystemGroup(data) {
  return request({
    url: '/business/systemGroup',
    method: 'put',
    data: data
  })
}

export function delSystemGroup(systemProjectId) {
  return request({
    url: '/business/systemGroup/' + systemProjectId,
    method: 'delete'
  })
}

export function getGroupBySystemProjectId(systemProjectId) {
  return request({
    url: '/business/systemGroup/select/' + systemProjectId,
    method: 'get'
  })
}
